package com.grj.parking.drools.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 支付记录表
 * @TableName payment_record
 */
@TableName(value ="payment_record")
@Data
public class PaymentRecord implements Serializable {
    /**
     * 支付ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 停车记录ID
     */
    @TableField(value = "record_id")
    private Long recordId;

    /**
     * 支付单号
     */
    @TableField(value = "payment_no")
    private String paymentNo;

    /**
     * 支付金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 支付方式(1-微信,2-支付宝,3-现金,4-余额)
     */
    @TableField(value = "payment_method")
    private Integer paymentMethod;

    /**
     * 支付时间
     */
    @TableField(value = "payment_time")
    private Date paymentTime;

    /**
     * 第三方交易号
     */
    @TableField(value = "transaction_id")
    private String transactionId;

    /**
     * 支付状态(1-成功,2-失败)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 操作员
     */
    @TableField(value = "operator")
    private String operator;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}